import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/Index'
import Login from '@/views/Login'
import Role from '@/views/Role'
import User  from '@/views/User'
import IndexV from '@/views/IndexV'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/index',
      name: 'Index',
      component: Index,
      children: [
        {
          path: 'role',
          name: 'role',
          component: Role
        },
        {
          path: 'user',
          name: 'user',
          component: User
        }
      ]
    },
    {
      path: '/',
      name: 'indexV',
      component: IndexV
    }
  ]
})
